<!-- 
国际化测试
 -->
<template>
    <p>{{ $t("zdemo.localDemo") }}</p>
    <el-button type="primary" @click="changeLocale('en')">英文</el-button>
    <el-button type="primary" @click="changeLocale('zh-cn')">中文</el-button>
</template>

<script setup lang="ts">
import { hookI18n } from "@/hooks/hookI18n";
const { setLocale: changeLocale } = hookI18n();
</script>
